package cn.uniqueinfo.dp.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-10 16:13:19
 * @description:
 */
@Mapper
@Component
public interface BizMapper extends BaseMapper {
    /** 动态解析，并返回数据 */
    List dynamicSql(HashMap param);

    void insertItem(HashMap param);

    Integer updateItem(HashMap param);

    HashMap getItem(@Param(value = "tableName") String tableName, @Param(value = "id") Long id);

    Integer deleteItems(@Param(value = "tableName") String tableName, @Param(value = "ids") String ids);
}
